package com.andy.customerService.controller;


import com.andy.customerService.pojo.request.UserRoleRequest;
import com.andy.customerService.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户角色表 前端控制器
 * </p>
 *
 * @author Andy
 * @since 2021-12-27
 */
@RestController
@RequestMapping("/user-role")
public class UserRoleController {

    @Autowired
    private UserRoleService userRoleService;

    @PostMapping
    public void addUserRole(UserRoleRequest userRoleRequest){
        userRoleService.addUserRole(userRoleRequest);
    }
}

